<?php
$options[0]="Select One";
foreach($menus as $menu){
	$id=$menu['menus']['id'];
	$name=$menu['menus']['title'];
	$options[$id]=$name;
}
$order[] = "select Order";
for($i=0; $i<=$total; $i++){
	$order[] = $i;
}
$menu_type=array("top"=>"Top","footer"=>"Footer");
	include("../../app/View/Parts/left.ctp");
?>
	<div class="span9 well">
		
		<fieldset>
			<legend>Create Menu</legend>
			
			<?php
				echo $this->Form->create('Menu');
				echo $this->Form->input('parent_id',array(
						'options'=>$options,
						'class'=>'span8'
					));
				echo "<br>";
				echo $this->Form->input('menu_order',array('class'=>'span8'));
				echo "<br>";
				echo $this->Form->input('menu_type',array(
						'options'=>$menu_type,
						'class'=>'span8'
					)
					);
				echo "<br>";
				echo $this->Form->input('title',array('class'=>'span8'));
				echo "<br>";
				echo $this->Form->input('URL',array('class'=>'span8'));
				echo "<br>";
				$options = array(
					'label' => 'Save',
					'class'=>'btn',
					);
				echo $this->Form->end($options);
			?>
		</fieldset>
	</div>
<div style="clear:both;"></div>